package com.carkeeper.user.pojo;

import tk.mybatis.mapper.annotation.LogicDelete;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


@Table(name = "tb_department")
public class Department implements Serializable {

    @Id
    private Integer id; //部门id

    private String code; //部门编码
    private String name; //部门名字
    private Date createTime; //创建时间（后面出问题就还是换成string吧）
    @LogicDelete
    private Integer delet; //是否删除,0为否1为是

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getDelet() {
        return delet;
    }

    public void setDelet(Integer delet) {
        this.delet = delet;
    }
}
